<?php
/**
 * Website for Lightbasic
 *
 * @package default
 * @author Albert
 */
class IndexController extends Zend_Controller_Action
{
    
    /**
     * Entry point
     *
     * @return void
     * @author Albert
     */
    public function indexAction()
    {
        $feed = new Zend_Feed_Atom('http://code.google.com/feeds/p/lightbasic/updates/basic');
        $data = array();
        foreach($feed as $entry) {
            if ($entry->content() == '<span class="ot-logmessage">[No log message]</span>') continue;
            $data[] = array(
                'title'     => $entry->title(),
                'content'   => $entry->content(),
                'date'      => $entry->updated()
            );
        }
        $this->view->feed = $data;
    }

}

